package com.yanze.schoolinformation.app;

import com.yanze.schoolinformation.app.App;
import com.yanze.schoolinformation.utils.SPUtils;

/**
 * Created by MrZheng on 2018/3/19.
 */

public abstract class C {
    public static class url {

        /**
         * 我的后端 因为在局域网中，每个局域网所分配的IP地址不一定，所以需要动态修改
         * 图片服务器同理
         */
        public final static String SchoolPort = ":8099";
        public final static String ImagePort = ":9090";

        public static String getSchoolBaseUrl() {
            return (String) SPUtils.get(App.getMyApplication(), "baseurl", "http://192.168.5.113");
        }

        //http://192.168.5.113:8080/
        public static String API_School = getSchoolBaseUrl() + SchoolPort + "/";
        public static String API_IMAGE = getSchoolBaseUrl() + ImagePort + "/";

        public final static String API_DOUBAN = "https://api.douban.com/";
        public final static String API_GANKIO = "https://gank.io/api/";
        public final static String API_WAN_ANDROID = "http://www.wanandroid.com/";
        public final static String API_QSBK = "http://m2.qiushibaike.com/";//糗事百科

        public static final String BaseUrl = "http://192.168.5.113:8099/";

        public static final String XuHaiUrl = "http://xhxy.cumt.edu.cn/";   //http://xhxy.cumt.edu.cn/4500/list1.htm
        public static final String XuHaiUrlEnd = ".htm";
        public static final String notification = "4501/"; //通知公告
        public static final String xuhainews = "4500/";    //徐海新闻
        public static final String schoolactivity = "4502/";//校园活动
        public static final String studentstars = "4503/"; //学子之星


        public static final String imgUrl1 = "https://ws1.sinaimg.cn/large/610dc034ly1fp9qm6nv50j20u00miacg.jpg";
        public static final String imgUrl2 = "https://ws1.sinaimg.cn/large/610dc034ly1foowtrkpvkj20sg0izdkx.jpg";
        public static final String imgUrl3 = "http://7xi8d6.com1.z0.glb.clouddn.com/20180208080314_FhzuAJ_Screenshot.jpeg";
        public static final String imgUrl4 = "http://7xi8d6.com1.z0.glb.clouddn.com/20180129074038_O3ydq4_Screenshot.jpeg";


        public static final String kuangdaUrl = "http://www.cumt.edu.cn/";
        public static final String xihaiUrl = "http://xhxy.cumt.edu.cn/";
        public static final String img1 = kuangdaUrl + "/_upload/article/images/8b/7b/d76bf64b493d84bf4de821d85cfb/db2706d3-78bd-4c30-b12a-a7b7bad8ec2e.jpg";
        public static final String img2 = kuangdaUrl + "/_upload/article/images/a5/7a/1dd82fb04c3f988501060691f0ae/92eafc10-31f0-4e50-9456-a9cc50a0120d.jpg";
        public static final String img3 = kuangdaUrl + "/_upload/article/images/96/cb/9d0e2be4452dadbb68dcd2b0f11e/9d96c147-000f-470d-880f-d48866dae67e.jpg";
        public static final String img4 = kuangdaUrl + "/_upload/article/images/51/3c/d5fb068b41c5ae1d7e3897b4fcdb/f9c0269a-2ddd-4e1b-b9a8-c7070d1de87e.jpg";
        public static final String img5 = kuangdaUrl + "/_upload/article/images/83/ce/46a1987f4beaa8704cc1b256581c/cfd34fed-1d37-49a3-b6c6-5493a6f978c6.jpg";
        public static final String href1 = kuangdaUrl + "/c3/17/c1245a443159/page.htm";
        public static final String href2 = kuangdaUrl + "/c2/cc/c1245a443084/page.htm";
        public static final String href3 = kuangdaUrl + "/bd/44/c1245a441668/page.htm";
        public static final String href4 = kuangdaUrl + "/b9/f0/c1245a440816/page.htm";
        public static final String href5 = kuangdaUrl + "/b9/54/c1245a440660/page.htm";

        //学院概况
        public static final String School_Synopsis = "http://xhxy.cumt.edu.cn/4504/list.htm";//学院概况
        public static final String Public_Service = "http://xhxy.cumt.edu.cn/5122/list.htm";//公共服务
        public static final String Employment_Guidance = "http://cumtxhc.91job.gov.cn/";//就业指导
        public static final String Deans_Office = "http://xhelearning.cumt.edu.cn:8080/jwc/";//教务处
        public static final String Deans_Office_1 = "http://219.219.54.226:8080/jwglxt/xtgl/login_slogin.html?language=zh_CN&_t=1526268028803";//教务处
        public static final String Student_Works = "http://xhxy.cumt.edu.cn/xgc/";//学生工作处
        public static final String Econcmy_Management = "http://xhc.cumt.edu.cn/yuanxi_web/jingguan_web/";//经济与管理系
        public static final String Electromechanical = "http://xhc.cumt.edu.cn/yuanxi_web/jidian_web1/";//机电与材料工程系
        public static final String Information_Electronic = "http://xhc.cumt.edu.cn/yuanxi_web/xindian/";//信息与电子工程系
        public static final String Architectural_Engineering = "http://xhelearning.cumt.edu.cn:8080/xhjg/index.jsp";//建筑工程系
        public static final String Computer_Department = "http://xhelearning.cumt.edu.cn:8080/xhcs/index.jsp";//计算机系
        public static final String Foreignlanguage_Culture = "http://xhc.cumt.edu.cn/yuanxi_web/english/";//外国语言文化系
        public static final String Literature_Department = "http://xhc.cumt.edu.cn/yuanxi_web/webwy";//文艺系
    }

    public static class count {
        public static final int count = 20;

    }

    public static class key{
        public static final String SP_Phone = "phone";//登录缓存手机号
        public static final String Home_News = "home.news.key";//登录缓存手机号
        public static final String Home_Banner = "home.banner.key";//登录缓存手机号




    }

    //1. 二手书界面的图片与SwipRefresh滑动冲突
//    2. 朋友圈界面上拉加载更多有时不触发
//    3.所有图片的显示问题
}